package cn.edu.njtc.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("doctor_detail")
@Schema(description = "医生详细信息实体")
public class DoctorDetail implements Serializable {

    @TableId("doctor_id") // 这里是外键同时也是主键，所以没有IdType.AUTO
    @Schema(description = "医生ID")
    private Integer doctorId;

    @TableField("doctor_introduction")
    @Schema(description = "医生简历或介绍")
    private String doctorIntroduction;

    @TableField("experience_years")
    @Schema(description = "从医经验年限")
    private Integer experienceYears;

    @TableField("specialties")
    @Schema(description = "擅长领域")
    private String specialties;

    @TableField("created")
    @Schema(description = "创建时间")
    private LocalDateTime created;

    @TableField("updated")
    @Schema(description = "修改时间")
    private LocalDateTime updated;

    @TableField("deleted")
    @Schema(description = "逻辑删除标记")
    private Boolean deleted;
}